﻿<Window x:Class="WindSimCDMenu.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="MainWindow" Height="350" Width="500" ResizeMode="NoResize" WindowStartupLocation="CenterScreen" WindowStyle="None" Background="{x:Null}" AllowsTransparency="True">
    <Window.Resources>
        <Style x:Key="LinkTextStyle" TargetType="TextBlock">
            <!--<Setter Property="Foreground" Value="#FF4D64A0"/>-->
            <Setter Property="Foreground" Value="#FF4D64A0"/>
            <Setter Property="FontFamily" Value="Calibri"/>
            <Setter Property="FontSize" Value="16"/>
            <Setter Property="FontWeight" Value="Bold"/>
            <Setter Property="Margin" Value="0 0 0 5"/>
            <Style.Triggers>
                <Trigger Property ="IsMouseOver" Value="True">
                    <Setter Property="Effect">
                        <Setter.Value>
                            <DropShadowEffect ShadowDepth="0" Color="Black" BlurRadius="2" />
                        </Setter.Value>
                    </Setter>
                </Trigger>
            </Style.Triggers>
        </Style>
    </Window.Resources>
    <Grid>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="46*"/>
            <ColumnDefinition Width="183*"/>
            <ColumnDefinition Width="35*"/>
            <ColumnDefinition Width="198*"/>
            <ColumnDefinition Width="38*"/>
        </Grid.ColumnDefinitions>
        <Grid.RowDefinitions>
            <RowDefinition Height="41*"/>
            <RowDefinition Height="56*"/>
            <RowDefinition Height="184*"/>
            <RowDefinition Height="32*"/>
            <RowDefinition Height="37*"/>
        </Grid.RowDefinitions>

        <Border BorderThickness="2" CornerRadius="5" Margin="20" Opacity="0.9" Grid.RowSpan="5" Grid.ColumnSpan="5" >
            <Border.Background>
                <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                    <GradientStop Color="#FFA0ABBB" Offset="1"/>
                    <GradientStop Color="White"/>
                </LinearGradientBrush>
            </Border.Background>
            <Border.BorderBrush>
                <ImageBrush ImageSource="Windrad.jpg" Opacity="0.255"/>
            </Border.BorderBrush>
            <Image Grid.ColumnSpan="2" Grid.Column="3" Margin="0,30,0,0" Grid.Row="2" Grid.RowSpan="3" Source="menu_bg_grass.png" Stretch="Fill">
                <Image.OpacityMask>
                    <LinearGradientBrush EndPoint="0.5,1" MappingMode="RelativeToBoundingBox" StartPoint="0.5,0">
                        <GradientStop Color="Black" Offset="0"/>
                        <GradientStop Offset="1" Color="#26FFFFFF"/>
                        <GradientStop Color="#B2000000" Offset="0.658"/>
                    </LinearGradientBrush>
                </Image.OpacityMask>
            </Image>
        </Border>
        <TextBlock Grid.Row="1" Grid.ColumnSpan="4" Grid.Column="1" FontSize="30" FontFamily="Calibri" FontWeight="Bold" >
            <TextBlock.OpacityMask>
                <RadialGradientBrush>
                    <GradientStop Color="Black" Offset="0"/>
                    <GradientStop Color="#72FFFFFF" Offset="1"/>
                </RadialGradientBrush>
            </TextBlock.OpacityMask>
            <TextBlock.Foreground>
                <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                    <GradientStop Color="#FF979797" Offset="0"/>
                    <GradientStop Color="#FF4D64A0" Offset="1"/>
                </LinearGradientBrush>
            </TextBlock.Foreground><Run Text="WindSim"/><Run Language="de-de" Text=" - Menü"/></TextBlock>
        <StackPanel Orientation="Vertical" Grid.Row="2" Grid.Column="1">
            <TextBlock Style="{StaticResource LinkTextStyle}" Text="Dienst starten" MouseDown="Menu_StartService_MouseDown" />
            <TextBlock Style="{StaticResource LinkTextStyle}" Text="Controller starten" MouseDown="Menu_StartController_MouseDown" />
            <TextBlock Style="{StaticResource LinkTextStyle}" Text="Modell starten" MouseDown="Menu_StartModel_MouseDown" />
            <Separator Opacity="0.5"/>
            <TextBlock Style="{StaticResource LinkTextStyle}" Text="Dokumentation Controller" MouseDown="Menu_DokController_MouseDown" />
            <TextBlock Style="{StaticResource LinkTextStyle}" Text="Dokumentation Modell" MouseDown="Menu_DokModell_MouseDown" />
            <Separator Opacity="0.5"/>
            <TextBlock Style="{StaticResource LinkTextStyle}" MouseDown="Menu_Project_MouseDown" >
                <Run Text="Visual Studio Projekt"/>
            </TextBlock>
        </StackPanel>
        <TextBlock Style="{StaticResource LinkTextStyle}" Text="Schließen" MouseDown="Close_MouseDown" Grid.Row="3" Grid.Column="3" VerticalAlignment="Bottom" HorizontalAlignment="Right" Margin="0,0,6,0" Opacity="0.995" Foreground="#FF4D64A0" >
            <TextBlock.Effect>
                <DropShadowEffect Color="White" Direction="0" ShadowDepth="0" BlurRadius="16"/>
            </TextBlock.Effect>
        </TextBlock>
        <TextBlock Style="{StaticResource LinkTextStyle}" Grid.Row="3" Grid.Column="1" VerticalAlignment="Bottom" HorizontalAlignment="Left" Margin="0,0,6,0" Opacity="0.595" Foreground="#FF4D64A0" Grid.ColumnSpan="3" FontSize="12" >
            <TextBlock.Effect>
                <DropShadowEffect Color="White" Direction="0" ShadowDepth="0" BlurRadius="16"/>
            </TextBlock.Effect><Run Text="Copyright © 2012 Hinnerk Pahl "/><Run Language="de-de" Text="&amp; "/><Run Text="Florian "/><Run Text="Deters"/></TextBlock>

        <Image Grid.Column="3" Margin="38,-1,3,21" Grid.RowSpan="4" Source="menu_bg_wka.png" Stretch="Fill" Grid.ColumnSpan="2">
            <Image.OpacityMask>
                <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                    <GradientStop Color="Black" Offset="0"/>
                    <GradientStop Color="#26FFFFFF" Offset="1"/>
                </LinearGradientBrush>
            </Image.OpacityMask>
        </Image>


    </Grid>
</Window>
